import sys
from datetime import date
from os import path as osp

def foo(a,b):
	print "---- testFoo";
	return a+b;

def testString(s):
	print "---- testString";
	if s != "testing":
		print "Error. " + s + " not correct";
	return "response";

def testArray(a):
	print "---- testArray";
	print a;
	for i in range(len(a)):
		print "a[%(#)d] =" % {"#" : i}, a[i]
	return ["one", "two", 3];

def testObject(o):
	print "---- testObject";
	print o;

def testDict(o):
	print "---- testDict";
	#print o;
	error = 0;
	if o["foo"] != "1":
		print "Error: o[foo]";
		error = 1;
	if o[2] != "bar":
		print "Error: o[2]";
		error = 1;
	if o[3.5] != "Three point five":
		print "Error:  o[3.5]";
		error = 1;
	if error:
		return None;
	t = {'darwin': 1, 'religion': 0}
	return t;

def testDate(d):
	print "---- testDate";
	print d;
	return date.today();



print "*** HELLO FROM PYTHON *** test.py initialized"
print sys.path